package com.leo.springbootmultithreadbasic.lock.reentranreadwritelock.readwrite;

/**
 * @author Leo
 * @version V1.0
 * @date 2021/11/5 10:29 PM
 */
public class MyRunnableB implements Runnable {

    private MyService myService;

    public MyRunnableB(MyService myService) {
        this.myService = myService;
    }

    @Override
    public void run() {
        myService.write();
    }
}
